<template>
  <a-modal :label-col="{style: { width: '200px' }}"
           v-model:visible="visible"
           okText="同意"
           cancelText="GUN"
           @ok="submit"
           @cancel="emit('close')"
           title="匿名发布协议">
    <p>在您发布评论之后，我们将会记录您的IP以保护评论的合法性，
      在发布之后您的评论将无法被您自己删除，且回复并不会及时的通知您!</p>
  </a-modal>
</template>

<script setup>
import {ref} from "vue";

defineProps({
  visible: {
    type: Boolean,
    required: true,
    default: false
  }
})

const agree = ref(false);

const emit = defineEmits(['close', 'confirm'])

const submit = () => {
  emit('close')
  emit('confirm')
}
</script>

<style scoped>

</style>